package com.example.springscheduledtasksample;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class LooperTask {
    Logger log = LoggerFactory.getLogger(LooperTask.class);
    @Scheduled(cron = "0/1 * * * * ?")
    public void loogper(){
        log.info("定时任务执行");
    }
}
